package org.example;

import org.example.builder.RaceCarBuilder;
import org.example.entity.RaceCar;

public class Player {
    private RaceCarBuilder rb;

    public void setRb(RaceCarBuilder rb) {
        this.rb = rb;
    }
    public RaceCar construct(){
        rb.setCarBody();
        rb.setEngine();
        rb.setTyre();
        rb.setGearBox();
        return rb.getRaceCar();
    }
}
